import Vue from 'vue'
import Router from 'vue-router'
import Page from '../components/Page'
import Asset from '../components/analysis-asset/Asset'
import Stock from '../components/analysis-stock/Stock'
import TeansctionDet from '../components/analysis-stock/stock/TeansctionDet'
import Month from '../components/analysis-month/Month'
import SharePush from '../components/share-push/SharePush'
import Risk from '../components/analysis-month/Risk'
import Loading from '../components/Loading'

Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			/*name: 'Page',
			component: Page*/
			redirect: '/pages/'
		},
		{
			path: '/pages',
			component: Page,
			children: [
				{
					path:'',
					redirect:'/pages/Asset'
				},
				{
					path: 'Asset',
					name: 'Asset',
					component: Asset
				},
				{
					path: 'Stock',
					name: 'Stock',
					component: Stock
				},
				{
					path: 'Month',
					name: 'Month',
					component: Month
				},
				{
					path: 'Risk',
					name: 'Risk',
					component: Risk
				},
				{
					path: 'TeansctionDet',
					name: 'TeansctionDet',
					component: TeansctionDet
				}
			]
		},
		{
			path:'/SharePush',
			name:'SharePush',
			component:SharePush
		},
		{
			path:'/Loading',
			name:'Loading',
			component:Loading
		}
	]
})
